package cn.ywang.loadbalance;

import java.util.List;
import java.util.Random;

/**
 * @Auther: BeatificWang
 * @Date: 2018/12/13 23:19
 */
public class RandomLoadBalance extends AbstractLoadBalance {
	@Override
	protected String doSelect(List<String> repos) {
		int size = repos.size();
		Random random = new Random();
		return repos.get(random.nextInt(size));
	}
}
